<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head th:replace="layouts::header" ></head>
<body>
<nav th:replace="layouts::navbar"></nav>
<div class="container">
    <h3>社团列表</h3>
    <hr>

    <a th:href="@{/association/new}" class="btn btn-primary btn-sm mb-3">创建社团</a>
    <br>
    <table class="table table-bordered table-striped bx">
        <thead class="thead-dark">
        <tr>
            <th>社团名称</th>
            <th>人数</th>
            <th>指定老师</th>
            <th>品牌活动</th>
        </tr>

        </thead>
        <tbody>
        <tr th:each="a1: ${association}">
            <td th:text="${a1.associationName}"></td>
            <td th:text="${a1.num}"></td>
            <td th:text="${a1.name1}"></td>
            <td th:text="${a1.activity}"></td>
        </tbody>
    </table>
</div>




</body>
</html>